/*
package com.salt.modules.sys;

import com.salt.modules.sys.mapper.UserMapper;
import com.salt.modules.sys.service.UserService;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

*/
/**
 * @Description
 * @Author salt
 * @Date 2022/10/24
 * @Version 1.0.1
 *//*

@SpringBootTest
@RunWith(SpringRunner.class)
public class UpdateUserPassword {

    @Autowired
    UserMapper userMapper;
    @Autowired
    UserService userService;

    //@Test
    public void update() {
        //String id = "0adf19db75224a9aa3e502d1e21bfbb0";
        //User user = userMapper.get(id);
        //String newPassword = "g&hjD#8R";
        */
/*if (UserService.validatePassword("12345", user.getPassword())) {
            userService.updatePasswordById(user.getId(), user.getLoginName(), newPassword);
        }*//*

       */
/* List<User> list = userMapper.findList(new User());
        int num = 0;
        for (User user:list) {
            if (UserService.validatePassword("123456", user.getPassword())) {
                num ++;
                userService.updatePasswordById(user.getId(), user.getLoginName(), newPassword);
            }
        }
        System.out.println("num: " + num);*//*


    }
}
*/
